#define _CRT_SECURE_NO_WARNINGS

class onlyHeap
{
public:
	static onlyHeap* creat()
	{
		return new onlyHeap;
	}

private:
	onlyHeap() {};
	onlyHeap(const onlyHeap&) = delete;
};

class onlyStack
{
public:
	static onlyStack creat()
	{
		return onlyStack();
	}

private:
	onlyStack() {};
	
};

class deleteCopy
{

private:
	deleteCopy(const deleteCopy&) = delete;

};

class A final
{
	//...
};